<?php

/**
 * ProfilerModule
 *
 * @author Robin Fai <robinfai9@gmail.com>
 * @link http://widget.robinfai.com
 * @license http://www.yiiframework.com/license/
 * @version $Id: $ 15/1/20 20:09 robin.fai $
 *
 */
class ProfilerModule extends CWebModule{
    public $defaultController = 'HomeController';
    public $controllerMap = array(
        'HomeController'=>'ext.profiler.controllers.HomeController'
    );
    public $assetsUrl;
    public function init(){
        Yii::import('ext.profiler.models.*');
        $assetsPath = Yii::getPathOfAlias('ext.profiler.assets');
        $this->assetsUrl = Yii::app()->assetManager->publish($assetsPath);
        Yii::app()->clientScript->corePackages['jquery'] = null;
        Yii::app()->setViewPath(Yii::getPathOfAlias('ext.profiler.views'));
    }
} 